package com.googlecode.rjm.model.journal;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.googlecode.rjm.model.Status;

@Entity
@Table(name = "journal_details")
@DiscriminatorValue(value = "attr#status_id")
public class StatusJournalDetail extends JournalDetail<Status> {

	public Status getTypedValue() {
		return loadObjectFromId(this.getValue(), Status.class);
	}

	public Status getOldTypedValue() {
		return loadObjectFromId(this.getOldValue(), Status.class);
	}

}
